package com.bicon.bdata_service_search.es.common.result;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 * Http 返回值 枚举
 * Created by dengshuanping on 2017/11/7.
 */
public enum ResultEnum {

    SUCCESS(200,"success"),
    FAIL(400,"fail"),
    PARAMERROR(10001001,"param error");
    private Integer code;
    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getValue() {
        return this.code;
    }
    @JsonValue
    public String getMsg() {
        return this.msg;
    }

}
